<?php
	header("Content-Type: text/html;charset=utf-8");
	include("function/_nosql.php"); //
	include("function/function.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>邮件找回密码_<?= $web_titles ?></title>
<meta name="Keywords" content="邮件找回密码,<?= $web_keywords ?>" />
<meta name="Description" content="<?= $web_description ?>" />
<link rel="stylesheet" href="css/common.css"/>
<link rel="stylesheet" href="css/style.css"/>
<script type="text/javascript" src="js/baidutongji.js"></script>
</head>
<body>
    <!--top-bar begin-->
	<? include("_include.top.topbar.php") ?>
    <!--top-bar end-->
    <div class="find-pass-box">
        <div class="find-step-wrap">
            <div class="find-step-box">
                <div class="f-step-l">
                    <ul>
                        <li><span class="set-size">01</span>选择找回方式</li>
                        <li><span class="cut"></span></li>
                        <li><span class="set-size">02</span>进行安全验证</li>
                        <li><span class="cut"></span></li>
                        <li><span class="set-size">03</span>设置新密码</li>
                    </ul>
                </div>
                <div class="f-step-r"><a href="index.php" class="back"><i class="icon-back"></i>返回网站首页</a></div>
            </div>
        </div>
        <div class="find-step-bd">
            <div class="find-step-in">
                <div class="step-title">第二步：进行安全验证</div>
				<form name="editpwd" id="editpwd" method="post" action="getpwd_phone_edit.php?action=edit">
                <div class="step-test">
                    <ul>
                        <li>
                            <span class="m-l">手机号：</span>
                            <div class="m-r">
                                <input type="text" class="m-find-input" name="user_phone" id="user_phone" value=""/>
                                <a class="get-yzm phone-yzm" href="alert.getphone.php?action=getpwd">获取验证码</a>
                                <div class="m-tips">我们将向该手机号发送验证码，请在下方输入您收到的验证码</div>
                            </div>
                        </li>
                        <li>
                            <span class="m-l">验证码：</span>
                            <div class="m-r">
                                <input type="text" class="m-find-input" name="user_phonecode" id="user_phonecode" value=""/>
                            </div>
                        </li>
                        <li class="mt30">
                            <span class="m-l"></span>
                            <div class="m-r">
                                <input type="submit" value="下一步" class="m-f-btn" name="m-f-btn" /><a class="m-f-btn cancel" href="login.php">取消</a>
                            </div>
                        </li>
                    </ul>
                </div>
				</form>
            </div>
        </div>
    </div>
    <!--foot begin-->
	<? include("_include.bottom.footbar.php") ?>
    <!--foot begin-->
    <script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="js/jquery.SuperSlide.2.1.1.js"></script>
    <script type="text/javascript" src="js/main.js"></script>
    <script type="text/javascript" src="layer/layer.js"></script>
    <script type="text/javascript" src="js/alert.js"></script>
	<script language="javascript">
	$(document).ready(function(){
		// 表单提交
		$("#editpwd").submit(function(){
			var user_phone = $("#user_phone").val();
			//var user_phone_rule = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
			var user_phonecode = $("#user_phonecode").val();

			// 邮箱验证
			if(user_phone == "" || !(/^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1})|(17[0-9]{1}))+\d{8})$/.test(user_phone))){
				alert("手机号格式错误！");
				$("#user_phone").focus();
				return false;
			}
			
			// 验证码验证
			if (user_phonecode.replace(/\ /g,"").length<1){
				alert("请正确输入验证码！");
				$("#user_phonecode").focus();
				return false;
			}
		});
	});
	</script>
</body>
</html>
